// 所有客户 搜索框
const allSearchBox = {
  items: [
    {
      label: "客户ID",
      type: "input",
      key: 'id',
      placeholder: "请输入客户ID",
      value: undefined
    },
    {
      label: '姓名',
      type: 'input',
      key: 'name',
      placeholder: '请输入姓名',
      value: undefined
    },
    {
      label: '手机号码',
      type: 'input',
      key: 'phone',
      placeholder: '请输入手机号码',
      value: undefined
    },
    {
      label: '邮箱',
      type: 'input',
      key: 'email',
      placeholder: '请输入邮箱',
      value: undefined
    },
    {
      label: '客户来源',
      type: 'dropdown',
      key: 'source',
      data: [
        
      ],
      placeholder: '请选择客户来源',
      value: undefined
    },
    {
      label: '客户类型',
      type: 'dropdown',
      key: 'customerType',
      data: [
        {
          label: '请选择客户类型',
          value: undefined
        },
        {
          label: '成交客户',
          value: '1'
        },
        {
          label: '潜在客户',
          value: '2'
        },
        {
          label: '预约中客户',
          value: '3'
        }
      ],
      placeholder: '请选择客户类型',
      value: undefined
    },
    {
      label: '是否注册',
      type: 'dropdown',
      key: 'register',
      data: [
        {
          label: '请选择是否注册',
          value: undefined
        },
        {
          label: '是',
          value: '1'
        },
        {
          label: '否',
          value: '0'
        }
      ],
      placeholder: '请选择是否注册',
      value: undefined
    },
    {
      label: '是否预约',
      type: 'dropdown',
      key: 'reservation',
      data: [
        {
          label: '请选择是否预约',
          value: undefined
        },
        {
          label: '是',
          value: '1'
        },
        {
          label: '否',
          value: '0'
        }
      ],
      placeholder: '请选择是否预约',
      value: undefined
    },
    {
      label: '是否购买',
      type: 'dropdown',
      key: 'buy',
      data: [
        {
          label: '请选择是否购买',
          value: undefined
        },
        {
          label: '是',
          value: '1'
        },
        {
          label: '否',
          value: '0'
        }
      ],
      placeholder: '请选择是否购买',
      value: undefined
    },
    {
      label: '是否回访',
      type: 'dropdown',
      key: 'callBack',
      data: [
      {
        label: '请选择是否回访',
        value: undefined
      },
      {
        label: '是',
        value: '1'
      },
      {
        label: '否',
        value: '0'
      }
      ],
      placeholder: '请选择是否回访',
      value: undefined
    },
    {
      label: '创建日期',
      type: 'daterange',
      key: 'createDate',
      data: '',
      placeholder: '',
      value: undefined
    },
    {
      label: '创建人',
      key: 'createBy',
      type: 'dropdown',
      data: [

      ],
      placeholder: '请选择创建人',
      value: undefined
    },
    {
      label: '证件号',
      type: 'input',
      key: 'idCard',
      data: '',
      placeholder: '请输入证件号',
      value: undefined
    },
    {
      label: '真爱编码',
      type: 'input',
      key: 'exclusiveId',
      data: '',
      placeholder: '请输入真爱编码',
      value: undefined
    }
 
  ],
  btnGroup: [{
    label: '查询',
    type: 'search'
  },
  {
    label: '清空',
    type: 'clear'
  }
  // {
  //   label: '导出',
  //   type: 'export'
  // }
  ],
  close: true
}
// 成交客户 搜索框
const dealSearchBox = {
  items: [
    {
      label: '客户ID',
      type: 'input',
      key: 'id',
      data: undefined,
      placeholder: '请输入客户ID',
      value: ''
    },
    {
      label: '姓名',
      type: 'input',
      key: 'name',
      data: undefined,
      placeholder: '请输入姓名',
      value: ''
    },
    {
      label: '手机号码',
      type: 'input',
      key: 'phone',
      data: '',
      placeholder: '请输入手机号码',
      value: ''
    },
    {
      label: '邮箱',
      type: 'input',
      key: 'email',
      data: '',
      placeholder: '请输入邮箱',
      value: ''
    },
    {
      label: '客户来源',
      type: 'dropdown',
      key: 'source',
      data: [
        
      ],
      placeholder: '请选择客户来源',
      value: undefined
    },
    {
      label: '是否注册',
      type: 'dropdown',
      key: 'register',
      data: [
        {
          label: '请选择是否注册',
          value: undefined
        },
        {
          label: '是',
          value: '1'
        },
        {
          label: '否',
          value: '0'
        }
      ],
      placeholder: '请选择是否注册',
      value: undefined
    },
    {
      label: '是否预约',
      type: 'dropdown',
      key: 'reservation',
      data: [
        {
          label: '请选择是否预约',
          value: undefined
        },
        {
          label: '是',
          value: '1'
        },
        {
          label: '否',
          value: '0'
        }
      ],
      placeholder: '请选择是否预约',
      value: undefined
    },
    {
      label: '是否回访',
      type: 'dropdown',
      key: 'callBack',
      data: [
        {
          label: '请选择是否回访',
          value: undefined
        },
        {
          label: '是',
          value: '1'
        },
        {
          label: '否',
          value: '0'
        }
      ],
      placeholder: '请选择是否回访',
      value: undefined
    },
    {
      label: '创建日期',
      type: 'daterange',
      key: 'createDate',
      data: '',
      placeholder: '',
      value: ''
    },
    {
      label: '创建人',
      type: 'dropdown',
      key: 'createBy',
      data: [],
      placeholder: '请选择创建人',
      value: undefined
    },
    {
      label: '证件号',
      type: 'input',
      key: 'idCard',
      data: '',
      placeholder: '请输入证件号',
      value: undefined
    },
    {
      label: '真爱编码',
      type: 'input',
      data: '',
      key: 'exclusiveId',
      placeholder: '请输入真爱编码',
      value: undefined
    }

  ],
  btnGroup: [
    {
      label: '查询',
      type: 'search'
    },
    {
      label: '清空',
      type: 'clear'
    }
  ],
  close: true
}
// 潜在客户 搜索框
const potentialSearchBox = {
  items: [
    {
      label: '客户ID',
      type: 'input',
      key: 'id',
      data: undefined,
      placeholder: '请输入客户ID',
      value: ''
    },
    {
      label: '姓名',
      type: 'input',
      key: 'name',
      data: undefined,
      placeholder: '请输入姓名',
      value: ''
    },
    {
      label: '手机号码',
      type: 'input',
      key: 'phone',
      data: '',
      placeholder: '请输入手机号码',
      value: ''
    },
    {
      label: '邮箱',
      type: 'input',
      key: 'email',
      data: '',
      placeholder: '请输入邮箱',
      value: ''
    },
    {
      label: '客户来源',
      type: 'dropdown',
      key: 'source',
      data: [
        
      ],
      placeholder: '请选择客户来源',
      value: undefined
    },
    {
      label: '是否注册',
      type: 'dropdown',
      key: 'register',
      data: [
        {
          label: '请选择是否注册',
          value: undefined
        },
        {
          label: '是',
          value: '1'
        },
        {
          label: '否',
          value: '0'
        }
      ],
      placeholder: '请选择是否注册',
      value: undefined
    },
    {
      label: '是否回访',
      type: 'dropdown',
      key: 'callBack',
      data: [
        {
          label: '请选择是否回访',
          value: undefined
        },
        {
          label: '是',
          value: '1'
        },
        {
          label: '否',
          value: '0'
        }
      ],
      placeholder: '请选择是否回访',
      value: undefined
    },
    {
      label: '创建日期',
      type: 'daterange',
      key: 'createDate',
      data: '',
      placeholder: '',
      value: ''
    },
    {
      label: '创建人',
      type: 'dropdown',
      key: 'createBy',
      data: [],
      placeholder: '请选择创建人',
      value: undefined
    }

  ],
  btnGroup: [{
    label: '查询',
    type: 'search'
  },
  {
    label: '清空',
    type: 'clear'
  }
  ],
  close: true
}
// 预约中客户 搜索框
const bookingSearchBox = {
  items: [
    {
      label: '客户ID',
      type: 'input',
      key: 'id',
      data: undefined,
      placeholder: '请输入客户ID',
      value: ''
    },
    {
      label: '姓名',
      type: 'input',
      key: 'name',
      data: undefined,
      placeholder: '请输入姓名',
      value: ''
    },
    {
      label: '手机号码',
      type: 'input',
      key: 'phone',
      data: '',
      placeholder: '请输入手机号码',
      value: ''
    },
    {
      label: '邮箱',
      type: 'input',
      key: 'email',
      data: '',
      placeholder: '请输入邮箱',
      value: ''
    },
    {
      label: '客户来源',
      type: 'dropdown',
      key: 'source',
      data: [
        
      ],
      placeholder: '请选择客户来源',
      value: undefined
    },
    {
      label: '是否注册',
      type: 'dropdown',
      key: 'register',
      data: [
        {
          label: '请选择是否注册',
          value: undefined
        },
        {
          label: '是',
          value: '1'
        },
        {
          label: '否',
          value: '0'
        }
      ],
      placeholder: '请选择是否注册',
      value: undefined
    },
    {
      label: '是否回访',
      type: 'dropdown',
      key: 'callBack',
      data: [
        {
          label: '请选择是否回访',
          value: undefined
        },
        {
          label: '是',
          value: '1'
        },
        {
          label: '否',
          value: '0'
        }
      ],
      placeholder: '请选择是否回访',
      value: undefined
    },
    {
      label: '创建日期',
      type: 'daterange',
      key: 'createDate',
      data: '',
      placeholder: '',
      value: ''
    },
    {
      label: '创建人',
      type: 'dropdown',
      key: 'createBy',
      data: [],
      placeholder: '请选择创建人',
      value: undefined
    }
  ],
  btnGroup: [
    {
      label: '查询',
      type: 'search'
    },
    {
      label: '清空',
      type: 'clear'
    }
  ],
  close: true
}

//客户列表-所有客户 表格表头信息 已对后台字段
const allCustormerTableH = [
  {
    isShow: true, // <Boolean> 是否展示
    prop: 'sort', // <String>  对应属性名
    label: '编号', // <String>   表头标签
    width: 100,
    fixed: true
  },
  {
    isShow: true, // <Boolean> 是否展示
    prop: 'source', // <String>  对应属性名
    label: '客户来源', // <String>   表头标签
    width: 100,
    fixed: false
  },
  {
    isShow: true, // <Boolean> 是否展示
    prop: 'id', // <String>  对应属性名
    label: '客户ID', // <String>   表头标签
    width: 100,
    fixed: false
  },
  {
    isShow: true,
    prop: 'phone',
    label: '手机号码',
    width: 140,
    fixed: false
  },
  {
    isShow: true,
    prop: 'name',
    label: '姓名',
    width: 100,
    fixed: false
  },
  {
    isShow: true,
    prop: 'sex',
    label: '性别',
    width: 100,
    fixed: false
  },
  {
    isShow: true,
    prop: 'email',
    label: '邮箱',
    width: 100,
    fixed: false
  },
  {
    isShow: true,
    prop: 'customerType',
    label: '客户类型',
    width: 100,
    fixed: false
  },
  {
    isShow: true,
    prop: 'isRegister',
    label: '是否注册',
    fixed: false
  },

  {
    isShow: true,
    prop: 'isReservation',
    label: '是否预约',
    fixed: false
  },
  {
    isShow: true,
    prop: 'isBuy',
    label: '是否购买',
    width: 100,
    fixed: false
  },
  {
    isShow: true,
    prop: 'isCallback',
    label: '是否回访',
    fixed: false
  },
  {
    isShow: true,
    prop: 'level',
    label: '会员等级',
    fixed: false
  },
  {
    isShow: true,
    prop: 'createName',
    label: '创建人',
    width: 100,
    fixed: false
  },
  {
    isShow: true,
    prop: 'createTime',
    label: '创建时间',
    width: 200,
    fixed: false
  }

]
// 成交客户 表格表头信息 dealCustomerTableH
const dealCustomerTableH = [
  {
    isShow: true, // <Boolean> 是否展示
    prop: 'sort', // <String>  对应属性名
    label: '编号', // <String>   表头标签
    width: 100,
    fixed: true
  },
  {
    isShow: true, // <Boolean> 是否展示
    prop: 'source', // <String>  对应属性名
    label: '客户来源', // <String>   表头标签
    width: 100,
    fixed: false
  },
  {
    isShow: true, // <Boolean> 是否展示
    prop: 'id', // <String>  对应属性名
    label: '客户ID', // <String>   表头标签
    width: 100,
    fixed: false
  },
  {
    isShow: true,
    prop: 'phone',
    label: '手机号码',
    width: 140,
    fixed: false
  },
  {
    isShow: true,
    prop: 'name',
    label: '姓名',
    width: 100,
    fixed: false
  },
  {
    isShow: true,
    prop: 'sex',
    label: '性别',
    width: 100,
    fixed: false
  },
  {
    isShow: true,
    prop: 'email',
    label: '邮箱',
    width: 100,
    fixed: false
  },
  {
    isShow: true,
    prop: 'isRegister',
    label: '是否注册',
    fixed: false
  },

  {
    isShow: true,
    prop: 'isReservation',
    label: '是否预约',
    fixed: false
  },
  {
    isShow: true,
    prop: 'isBuy',
    label: '是否购买',
    width: 100,
    fixed: false
  },
  {
    isShow: true,
    prop: 'isCallback',
    label: '是否回访',
    fixed: false
  },
  {
    isShow: true,
    prop: 'level',
    label: '会员等级',
    fixed: false
  },
  {
    isShow: true,
    prop: 'createName',
    label: '创建人',
    width: 100,
    fixed: false
  },
  {
    isShow: true,
    prop: 'createTime',
    label: '创建时间',
    width: 200,
    fixed: false
  },
]

// 潜在客户 表格表头 potentialCustomer
const potentialTableH = [
  {
    isShow: true, // <Boolean> 是否展示
    prop: 'sort', // <String>  对应属性名
    label: '编号', // <String>   表头标签
    width: 100,
    fixed: true
  },
  {
    isShow: true, // <Boolean> 是否展示
    prop: 'source', // <String>  对应属性名
    label: '客户来源', // <String>   表头标签
    width: 100,
    fixed: false
  },
  {
    isShow: true, // <Boolean> 是否展示
    prop: 'id', // <String>  对应属性名
    label: '客户ID', // <String>   表头标签
    width: 100,
    fixed: false
  },
  {
    isShow: true,
    prop: 'phone',
    label: '手机号码',
    width: 140,
    fixed: false
  },
  {
    isShow: true,
    prop: 'name',
    label: '姓名',
    width: 100,
    fixed: false
  },
  {
    isShow: true,
    prop: 'sex',
    label: '性别',
    width: 100,
    fixed: false
  },
  {
    isShow: true,
    prop: 'email',
    label: '邮箱',
    width: 100,
    fixed: false
  },
  {
    isShow: true,
    prop: 'isRegister',
    label: '是否注册',
    fixed: false
  },

  {
    isShow: true,
    prop: 'isReservation',
    label: '是否预约',
    fixed: false
  },
  {
    isShow: true,
    prop: 'isBuy',
    label: '是否购买',
    width: 100,
    fixed: false
  },
  {
    isShow: true,
    prop: 'isCallback',
    label: '是否回访',
    fixed: false
  },
  {
    isShow: true,
    prop: 'level',
    label: '会员等级',
    fixed: false
  },
  {
    isShow: true,
    prop: 'createName',
    label: '创建人',
    width: 100,
    fixed: false
  },
  {
    isShow: true,
    prop: 'createTime',
    label: '创建时间',
    width: 200,
    fixed: false
  },
]
// 预约中客户 bookingTableH
const bookingTableH = [
  {
    isShow: true, // <Boolean> 是否展示
    prop: 'sort', // <String>  对应属性名
    label: '编号', // <String>   表头标签
    width: 100,
    fixed: true
  },
  {
    isShow: true, // <Boolean> 是否展示
    prop: 'source', // <String>  对应属性名
    label: '客户来源', // <String>   表头标签
    width: 100,
    fixed: false
  },
  {
    isShow: true, // <Boolean> 是否展示
    prop: 'id', // <String>  对应属性名
    label: '客户ID', // <String>   表头标签
    width: 100,
    fixed: false
  },
  {
    isShow: true,
    prop: 'phone',
    label: '手机号码',
    width: 140,
    fixed: false
  },
  {
    isShow: true,
    prop: 'name',
    label: '姓名',
    width: 100,
    fixed: false
  },
  {
    isShow: true,
    prop: 'sex',
    label: '性别',
    width: 100,
    fixed: false
  },
  {
    isShow: true,
    prop: 'email',
    label: '邮箱',
    width: 100,
    fixed: false
  },
  {
    isShow: true,
    prop: 'isRegister',
    label: '是否注册',
    fixed: false
  },

  {
    isShow: true,
    prop: 'isReservation',
    label: '是否预约',
    fixed: false
  },
  {
    isShow: true,
    prop: 'isBuy',
    label: '是否购买',
    width: 100,
    fixed: false
  },
  {
    isShow: true,
    prop: 'isCallback',
    label: '是否回访',
    fixed: false
  },
  {
    isShow: true,
    prop: 'createName',
    label: '创建人',
    width: 100,
    fixed: false
  },
  {
    isShow: true,
    prop: 'createTime',
    label: '创建时间',
    width: 200,
    fixed: false
  }
]
// 分页数据
const paginationObject = {
	pageNum: 1, //当前页
	pageSize: 10, //一页多少条
	pageTotal: 1,
	total: 0,
	num1: 1,
	num2: 1
}
// 4个tab切换的数据配置
const tabNavs = [
  {
    label: '所有客户', 
    name: 'allSearchBox',
    options: allSearchBox,
    tableConfig: allCustormerTableH,
    tableContent: [],
    pageControl: Object.assign({}, paginationObject)
  },
  {
    label: '成交客户', 
    name: 'dealSearchBox',
    options: dealSearchBox,
    tableConfig: dealCustomerTableH,
    tableContent: [],
    pageControl: Object.assign({}, paginationObject)
  },
  {
    label: '潜在客户', 
    name: 'potentialSearchBox',
    options: potentialSearchBox,
    tableConfig: potentialTableH,
    tableContent: [],
    pageControl: Object.assign({}, paginationObject)
  },
  {
    label: '预约中客户', 
    name: 'bookingSearchBox',
    options: bookingSearchBox,
    tableConfig: bookingTableH,
    tableContent: [],
    pageControl: Object.assign({}, paginationObject)
  }
]

// 按钮
const searchFromData = {
  deliveryNo: undefined,
  deliveryTime: undefined,
  origin: undefined
}

const tableHeadData = [
  { prop: 'id', label: '编号', width: '100px'},
  { prop: 'from', label: '客户来源', width: '100px'},
  { prop: 'customerID', label: '客户ID', width: '100px'},
  { prop: 'phone', label: '手机号码', width: '140px'},
  { prop: 'customerName', label: '姓名', width: '100px'},
  { prop: 'sex', label: '性别', width: '100px'},
  { prop: 'email', label: '邮箱', width: '100px'},
  { prop: 'customerType', label: '客户类型', width: '100px'},
  { prop: 'register', label: '是否注册', width: '100px'},
  { prop: 'book', label: '是否预约', width: '100px'},
  { prop: 'purchase', label: '是否购买', width: '100px'},
  { prop: 'returnInterview', label: '是否回访', width: '100px'},
  { prop: 'customerLevel', label: '会员等级', width: '100px'},
  { prop: 'founder', label: '创建人', width: '100px'},
  { prop: 'createTime', label: '创建时间', width: '200px'},
  { prop: 'registerTime', label: '注册时间', width: '200px'}
]
    
// 积分账户表格内容
const integraTable=[
  {from:'官网',changeReason:'礼品商城兑换',changeTime:'2018-11-15',changeIntegra:'1500',surplusIntegra:'520',orderNum:'6556213213',status:'正常',purpose:'兑换礼品',effectiveTime:'2019-01-12',overdueTime:'2019-02-15',operator:'张思'},
  {from:'官网',changeReason:'礼品商城兑换',changeTime:'2018-11-15',changeIntegra:'1500',surplusIntegra:'520',orderNum:'6556213213',status:'正常',purpose:'兑换礼品',effectiveTime:'2019-01-12',overdueTime:'2019-02-15',operator:'张思'},
]

export default {
  tabNavs,
  tableHeadData, 
  integraTable
}
